// 路由配置文件
import Index from './components/Index';
import Mine from './components/Mine';
import NewsInfo from './components/NewsInfo';
import Search from './components/Search';
import Collection from './components/Collection';
import Reg from './components/Reg';
import Login from './components/Login';

export const routes = [
  // {
  //   path: '/',
  //   exact:true,
  //   component: App,
  //   // routes: [
  //   //   // {
  //   //   //   path: '/index',
  //   //   //   component: App
  //   //   // },
  //   // ]
  // },
  {
    path: '/newsinfo/:id',
    component: NewsInfo
  },
  // {
  //   path: '/mine',
  //   component: Mine
  // },
  {
    path: '/search',
    component: Search
  },
  {
    path: '/collection',
    component: Collection
  },
  {
    path: '/sign',
    component: Reg
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/',
    component: Index
  },
];
